Deletes a file. For example, use this statement at the beginning of a script to delete a file created the last time the script ran so it can be created again during playback.
The script continues running even if QA Wizard Pro cannot locate the file to delete.
Note: Issues may occur when using this statement in load test scripts.
Syntax
DeleteFile("FilePath")
Arguments
| Argument | Description |
|---|---|
| FilePath | Full path to the file to delete. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory. |
Example
DeleteFile("C:\\Testing\\results.txt")